package lianxi4;
//固定工资员工类
public class SalariedEmployee extends ColaEmployee{
    private double monthSalary;
    public SalariedEmployee(String name, int birthMonth, double monthSalary) {
        super(name, birthMonth);
        this.monthSalary = monthSalary;
    }

    @Override
    public double getSalary(int month) {
        if(getBirthMonth()==month){
            return monthSalary+100;
        }
        return monthSalary;
    }
}
